package com.ahies.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

/**
 * @author Mr.Yu
 * @description
 * @Date 2021/6/6  23:19
 */
@Configuration
@EnableResourceServer
public class ResourceServerConfigure {

    public void configure(HttpSecurity http) throws Exception {
        http.authorizeRequests().antMatchers("/api/order/*").authenticated();

    }

}
